<h1>Reset Password</h1>

<?php if ($this->reset): ?>
    <div class="succes">
        <p>A link has been e-mailed to you. You can use it to set a new password.</p>
    </div>
<?php endif ?>

<?php if ($this->expired): ?>
    <div class="error">
        <p>The link you used has expired. Please try again.</p>
    </div>
<?php endif ?>

<?php foreach ($this->resetForm->getElements() as $element): ?>
    <?php foreach ($element->getErrorMessages() as $error): ?>
        <div class="error">
            <p id="error-login-<?php echo $element->getName() ?>">
                <?php echo $error ?>
            </p>
        </div>
    <?php endforeach ?>
<?php endforeach ?>

<?php echo $this->resetForm ?>